<Query Kind="VBStatements">
  <Connection>
    <ID>a50d59f2-50a7-4e3c-b893-7b7c3ce076e7</ID>
    <Server>WEBSQL</Server>
    <Database>abpc</Database>
    <ShowServer>true</ShowServer>
  </Connection>
</Query>

Dim x = 4

If 2 = 2 Then
	Dim y = 4  'You can only use this variable inside this If/End If code block
End If

If 2 = 2 Then
	Dim y = 2  ' "y" is considered a different variable than the "y" above
End If

While x > 0
  x = x - 1  ' This is the same "x" as variable as the one declared in the first line
End While

While x > 0
  Dim y = 1	 '  "y" is lives inside this While/End While block
  			 '  It's "created" for every loop call, which means you can't use it to
			 '  "remember" numbers from the last loop.
  x = x - y  ' This is the same "x" as variable as the one declared in the first line
End While

For i = 1 to 5
  i.Dump()  ' The "i" variable only belongs here
Next i

